home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ Aug 89 / X0025-2.0B9 Bug-Aug89 < prev    next >
Encoding:
Text File  |  1989-08-22  |  1.4 KB  |  39 lines  |  [TEXT/GEOL]

  1. Item    9152935                         7-Aug-89        14:59
  2.  
  3. From:   BAJAJ.A                         Bajaj, Anil, APL
  4.  
  5. To:     MACAPP.TEST                     MacApp SQA Team
  6.         MACAPP.TECH$                    MACAPP Tech
  7.  
  8. Sub:    2.0B9 Bug
  9.  
  10. There is a bug in TEvtHandler.DoMultiClick which is supposed to determine if
  11. the current newDownPt is close enough (vertically as well as horizontally) to
  12. lastDownPt i.e. within the distance specified by gStdHyteresis. However, in B9
  13. this method returns true if the difference between the two points is either
  14. vertically or horizontally within gStdHysteresis. Thus, if the user clicks at a
  15. location at the top and bottom of the screen (vertically far apart) but in the
  16. same horizontal column i.e. within 4 pixels of it, and within GetDoubleTime,
  17. then it is treated as a doubleClick.
  18.  
  19. -----------------------------------------------------------------
  20.  
  21. FUNCTION TEvtHandler.DoMultiClick(lastDownPt, newDownPt: Point): BOOLEAN;
  22.  
  23.    BEGIN
  24.    IF fNextHandler <> NIL THEN
  25.    DoMultiClick := fNextHandler.DoMultiClick(lastDownPt, newDownPt)
  26.    ELSE
  27.    DoMultiClick := (ABS(lastDownPt.h - newDownPt.h) <= (gStdHysteresis.h)) |
  28.                   (ABS(lastDownPt.v - newDownPt.v) <= (gStdHysteresis.v));
  29.    END;
  30.  
  31. --------------------------------------------------------------------------^
  32.  
  33. The '|' should actually be an '&' over here shouldn't it.
  34.  
  35. Anil Bajaj
  36. MacDSS Project
  37.  
  38.  
  39.